package xyz.bali16.module.menu.service;

import com.gitee.starblues.core.PluginExtensionInfo;
import xyz.bali16.module.menu.config.BasicConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class Basic1PluginExtensionInfo implements PluginExtensionInfo {

    @Autowired
    private BasicConfig basicConfig;

    @Override
    public Map<String, Object> extensionInfo() {
        Map<String, Object> map = new HashMap<>();
        map.put("plugin1", "plugin1ExtensionInfo");
        map.put("plugin-config", basicConfig.toString());
        return map;
    }
}
